var chef = {
	id: "chef",

	visible: true,
	
	contador: 0,
	delay: 0,
	
	init: function () {
	},

	update: function (delta) {
			
		this.delay += 1;
		
		if (this.delay >= 11){
			if (jsGFwk.IO.keyboard._activeKey[39] && this.contador <= 1){
				this.contador = this.contador + 1;
				this.delay = 0;
			}				
			if (jsGFwk.IO.keyboard._activeKey[37] && this.contador >= 1){
				this.contador = this.contador - 1;
				this.delay = 0;
			}
		}
		
	},

	draw: function (context) {
			
			if (this.contador == 0){
				context.drawImage(jsGFwk.ResourceManager.graphics.sprites.image,
					21, 202, 31, 40,
					30, 65, 31, 40); // chef 1b
			}else { if (this.contador == 1){
						context.drawImage(jsGFwk.ResourceManager.graphics.sprites.image,
							67, 199, 33, 40,
							70, 65, 33, 40); // chef 2b
		
			}else {context.drawImage(jsGFwk.ResourceManager.graphics.sprites.image,
						113, 200, 30, 40,
						110, 65, 30, 40); // chef 3b
			}}
	},
};
